﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Windows.Forms;

namespace OntologyUtility.Xml
{
    public class XmlReader
    {
        public XmlDocument Document { get; set; }
        public string Name { get; set; }

        public XmlReader() {
            
        }

        public void init(String pathName) {
            Document = new XmlDocument();
            Document.Load(pathName);
        }



        public XmlNodeList getNodes() {
            List<Control> widget = new List<Control>();

            XmlElement root = (XmlElement)(Document.GetElementsByTagName(XmlData.XMLNAME).Item(0));

            return root.ChildNodes;
        }

    }
}
